package cn.edu.zjut.event;

import org.springframework.context.ApplicationEvent;

/**
 * @author XiaoFeng
 * @version 1.0
 * @Description Create by 2021/12/4 19:54
 */

public class EmailEvent extends ApplicationEvent {
    private String address;
    private String text;
    public EmailEvent(Object source) {
        super(source);
    }

    public EmailEvent(Object source, String address, String text) {
        super(source);
        this.address = address;
        this.text = text;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
